import {EntityId, PageQueryParams} from "kf-web-library";
import {PayOrder} from "@/services";

export interface RefundRecordPageQueryParams extends Partial<PageQueryParams> {
  searchText?: string;
  ids?: EntityId[];
}

export interface RefundRecord{
  createTime: string; //创建时间
  createUserId: number; //${column.comment}
  modifyTime: string; //修改时间
  modifyUserId: number; //${column.comment}
  deleted: number; //删除标记
  id: EntityId; //主键
  orderId: number; //关联订单ID
  order: PayOrder; //关联订单ID
  orderNo: string; //订单编号
  transactionId: string; //收钱吧交易流水号
  refundAmount: number; //退款金额
  refundStatus: string; //退款状态(处理中,成功,失败) PayStatus
  refundTime: string; //退款完成时间
}


export interface RefundRecord_Create{
  orderId: number; //关联订单ID
  orderNo: string; //订单编号
  transactionId: string; //收钱吧交易流水号
  refundAmount: number; //退款金额
  refundStatus: string; //退款状态(处理中,成功,失败) PayStatus
  refundTime: string; //退款完成时间
}



export interface RefundRecord_Modify extends RefundRecord_Create {
  id: EntityId;
}

export interface RefundRecord_Patch extends Partial<RefundRecord_Modify> {
  id: EntityId;
}

